﻿#ifndef SELECTEVENT_H
#define SELECTEVENT_H
#include "DetectionEvent.h"
#include "MySocket.h"

class SelectEvent: public DetectionEvent
{
public:
    SelectEvent();

    ~SelectEvent();

    int removeFd(const int fd);
    int addToEvent(const int fd);

    // 调用epoll_wait，并将其交给Event类的handleEvent函数处理
    void Detect(std::vector<MyHandler*> &events);
private:
    std::vector<int> fds;
};

#endif // SELECTEVENT_H
